<?php
	include_once("TestResult.php");

	class TestCase
	{
		var $name;

		public function TestCase($name)
		{
			$this->name = $name;
		}

		public function setUp()
		{
		}

		public function run()
		{
			$result = new TestResult();
			$result->testStarted();

			$this->setUp();
			$name = $this->name;
			$this->$name();
			$this->tearDown();

			return $result;
		}

		public function tearDown()
		{
		}
	}
?>